# -*- coding: UTF-8 -*-

# 生成1*1，2*2，3*3..10*10
print [i * i for i in range(1, 11)]

# 去除奇数
print [i * i for i in range(1, 11) if i % 2 == 0]

# 全排列
print [x + y for x in "AB" for y in "XYZ"]

dict = {"a": 1, "b": 2}
print [k + "=" + str(val) for k, val in dict.items()]
